<div *ngIf="data.NodeType == 'c'">
  <mat-form-field>
    <mat-select [(ngModel)]="data.Field">
      <mat-option *ngFor="let Column of data.ColumnNames" [value]="Column">
        {{ Column }}
      </mat-option>
    </mat-select>
  </mat-form-field>

  <mat-form-field>
    <mat-select [(ngModel)]="data.Operate">
      <mat-option *ngFor="let Opera of OperateArray" [value]="Opera">
        {{ Opera }}
      </mat-option>
    </mat-select>
  </mat-form-field>

  <form>
    <mat-form-field>
      <textarea
        class="condition-value"
        name="valuetext"
        matInput
        placeholder="点击输入值"
        [(ngModel)]="data.Value"
      ></textarea>
    </mat-form-field>
  </form>
</div>
<div *ngIf="data.NodeType == 't'">
  <form>
    <mat-form-field>
      <textarea
        class="condition-value"
        name="valuePlainText"
        matInput
        placeholder="点击输入值"
        [(ngModel)]="data.PlainText"
      ></textarea>
    </mat-form-field>
  </form>
</div>
<button mat-button [mat-dialog-close]="data" cdkFocusInitial>Ok</button>
<button mat-button (click)="delete()" [mat-dialog-close]="data" cdkFocusInitial>删除该定义</button>
